package com.youhome.service.mapper;

import com.youhome.service.model.BShareLog;
import com.youhome.service.model.DateItem;
import com.youhome.service.model.DateParam;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BShareLogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BShareLog record);

    int insertSelective(BShareLog record);

    BShareLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BShareLog record);

    int updateByPrimaryKey(BShareLog record);

    List<BShareLog> selectByShareId(String shareId);

    int selectCountByShareId(String shareId);

    List<DateItem> selectDateItemByDateAndUUID(DateParam dateParam);

    List<DateItem> selectLast30DayDateItemByShareId(String shareId);
}